// 基于template/src/views/{{appModules}}/{{pages@DEGRIDVIEW}}/{{spinalCase page.codeName}}-model.ts.hbs生成
import { IGridViewModel } from "@/core/interface/view/model";

function getModel(): IGridViewModel {
    return {
        caption: "avue示例实体04",
        title: "avue示例系统04表格视图",
        capPSLanguageRes: "DE.LNAME.AVUECHILDFOUR",
        titlePSLanguageRes: "PAGE.TITLE.AVUECHILDFOUR.GRIDVIEW",
        showDataInfoBar: false,
        codeName: 'avueChildFourGridView',
        uiEngineModel: [
                    {
                        name: 'toolbar_deuiaction1_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'deuiaction1',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'Refresh',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_tbitem4_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'tbitem4',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'Edit',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_tbitem6_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'tbitem6',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'Copy',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_systbitem1_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'systbitem1',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'Refresh',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_deuiaction2_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'deuiaction2',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'ToggleRowEdit',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_deuiaction3_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'deuiaction3',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'SaveRow',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_deuiaction4_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'deuiaction4',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'NewRow',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_tbitem8_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'tbitem8',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'Remove',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_tbitem13_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'tbitem13',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'ExportExcel',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_tbitem11_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'tbitem11',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'Print',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_tbitem21_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'tbitem21',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'ExportModel',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_tbitem23_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'tbitem23',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'Import',
                        entityCodeName: '',
                    },
                    {
                        name: 'newdata',
                        triggerType: 'CUSTOM',
                        logicType: 'SYSUILOGIC',
                        eventNames: '',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: '',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: '',
                        entityCodeName: '',
                    },
                    {
                        name: 'opendata',
                        triggerType: 'CUSTOM',
                        logicType: 'SYSUILOGIC',
                        eventNames: '',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: '',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: '',
                        entityCodeName: '',
                    }
            ],
        ctrls: [
            {
                name: 'grid',
                codeName: 'Main',
                controlType: 'GRID',
            },
            {
                name: 'searchform',
                codeName: 'Default',
                controlType: 'SEARCHFORM',
            },
            {
                name: 'toolbar',
                codeName: 'GridViewtoolbar',
                controlType: 'TOOLBAR',
            }
        ],
        ctrlParams: {
            AvueChildFourgrid: {},
            AvueChildFoursearchform: {},
            AvueChildFourtoolbar: {},
        },
        cssName: "",
        name: "avueChildFourGridView",
        viewType: "DEGRIDVIEW",
        viewStyle: "DEFAULT",
        showCaption: true,
        isLoadDefault: true,
        entityCodeName: "AvueChildFour",
        keyPSAppDEField: "AvueChildFourId",
        majorPSAppDEField: "AvueChildFourName",
        enableQuickSearch: true,
        expandSearchForm:false,
        newData: {
            deCodeName: 'AvueChildFour',
            newDataViewName: 'avueChildFourEditView',
        },
        openData: {
            deCodeName: 'AvueChildFour',
            openDataViewName: 'avueChildFourEditView',
        },
        toolbarItems: [
            {
          		actionLevel: '100',
          		caption: '刷新',
          		captionLanResTag: '',
          		name: 'deuiaction1',
          		showCaption: true,
          		tooltip: '刷新',
          		tooltipLanResTag: '',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: 'deepskyblue-toolbar',
          		imagePath: '',
          		iconCls: 'fa fa-refresh',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'Refresh',
          			uIActionMode: 'SYS',
          			actionTarget: '',
          			uIActionTag: 'Refresh',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_deuiaction1_click',
                  	actionTag: 'Refresh',
                  	xDataCtrlName: 'grid',
                  	predefinedType: 'EDITVIEW_REFRESHACTION',
                  }
            },
            {
          		actionLevel: '100',
          		caption: '编辑',
          		captionLanResTag: 'TBB.TEXT.*.EDIT',
          		name: 'tbitem4',
          		showCaption: true,
          		tooltip: '编辑',
          		tooltipLanResTag: 'TBB.TOOLTIP.*.EDIT',
          		itemType: 'DEUIACTION',
          		showIcon: false,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'fa fa-edit',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'Edit',
          			uIActionMode: 'SYS',
          			actionTarget: 'SINGLEKEY',
          			uIActionTag: 'Edit',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_tbitem4_click',
                  	actionTag: 'Edit',
                  	xDataCtrlName: 'grid',
                  	predefinedType: 'GRIDVIEW_EDITACTION',
                  }
            },
            {
          		actionLevel: '100',
          		caption: '拷贝',
          		captionLanResTag: 'TBB.TEXT.*.COPY',
          		name: 'tbitem6',
          		showCaption: true,
          		tooltip: '拷贝',
          		tooltipLanResTag: 'TBB.TOOLTIP.*.COPY',
          		itemType: 'DEUIACTION',
          		showIcon: false,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'fa fa-copy',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'Copy',
          			uIActionMode: 'SYS',
          			actionTarget: 'SINGLEKEY',
          			uIActionTag: 'Copy',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_tbitem6_click',
                  	actionTag: 'Copy',
                  	xDataCtrlName: 'grid',
                  	predefinedType: 'GRIDVIEW_COPYACTION',
                  }
            },
            {
          		actionLevel: '100',
          		caption: '刷新',
          		captionLanResTag: '',
          		name: 'systbitem1',
          		showCaption: true,
          		tooltip: '刷新',
          		tooltipLanResTag: '',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'fa fa-refresh',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'Refresh',
          			uIActionMode: 'SYS',
          			actionTarget: '',
          			uIActionTag: 'Refresh',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_systbitem1_click',
                  	actionTag: 'Refresh',
                  	xDataCtrlName: 'grid',
                  	predefinedType: 'EDITVIEW_REFRESHACTION',
                  }
            },
            {
          		name: 'tbitem7',
          		itemType: 'SEPERATOR',
            },
            {
          		actionLevel: '100',
          		caption: '删除',
          		captionLanResTag: 'TBB.TEXT.*.REMOVE',
          		name: 'tbitem8',
          		showCaption: true,
          		tooltip: '删除',
          		tooltipLanResTag: 'TBB.TOOLTIP.*.REMOVE',
          		itemType: 'DEUIACTION',
          		showIcon: false,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'fa fa-remove',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'Remove',
          			uIActionMode: 'SYS',
          			actionTarget: 'MULTIKEY',
          			uIActionTag: 'Remove',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_tbitem8_click',
                  	actionTag: 'Remove',
                  	xDataCtrlName: 'grid',
                  	predefinedType: 'GRIDVIEW_REMOVEACTION',
                  }
            },
            {
          		name: 'tbitem9',
          		itemType: 'SEPERATOR',
            },
            {
          		actionLevel: '100',
          		caption: '导出',
          		captionLanResTag: 'TBB.TEXT.*.EXPORT',
          		name: 'tbitem13',
          		showCaption: true,
          		tooltip: '导出',
          		tooltipLanResTag: 'TBB.TOOLTIP.*.EXPORT',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'fa fa-file-excel-o',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'ExportExcel',
          			uIActionMode: 'SYS',
          			actionTarget: '',
          			uIActionTag: 'ExportExcel',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_tbitem13_click',
                  	actionTag: 'ExportExcel',
                  	xDataCtrlName: 'grid',
                  	predefinedType: 'GRIDVIEW_EXPORTACTION',
                  }
            },
            {
          		name: 'tbitem10',
          		itemType: 'SEPERATOR',
            },
            {
          		actionLevel: '',
          		caption: '其它',
          		captionLanResTag: '',
          		name: 'tbitem16',
          		showCaption: true,
          		tooltip: '其它',
          		tooltipLanResTag: '',
          		itemType: 'ITEMS',
          		showIcon: true,
          		disabled: false,
                  visible: true,
          		dataAccessAction: '',
          		items: [  {
          		actionLevel: '100',
          		caption: '导出数据模型',
          		captionLanResTag: 'MENUITEM.CAPTION.*.EXPORTSRF',
          		name: 'tbitem21',
          		showCaption: true,
          		tooltip: '导出数据模型',
          		tooltipLanResTag: '',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'fa fa-download',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'ExportModel',
          			uIActionMode: 'SYS',
          			actionTarget: '',
          			uIActionTag: 'ExportModel',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_tbitem21_click',
                  	actionTag: 'ExportModel',
                  	xDataCtrlName: 'grid',
                  	predefinedType: 'GRIDVIEW_EXPORTXMLACTION',
                  }
            },
            {
          		actionLevel: '100',
          		caption: '数据导入',
          		captionLanResTag: '',
          		name: 'tbitem23',
          		showCaption: true,
          		tooltip: '数据导入',
          		tooltipLanResTag: '',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'fa fa-upload',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'Import',
          			uIActionMode: 'SYS',
          			actionTarget: '',
          			uIActionTag: 'Import',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_tbitem23_click',
                  	actionTag: 'Import',
                  	xDataCtrlName: 'grid',
                  	predefinedType: 'GRIDVIEW_IMPORTBAR',
                  }
            },
          ]
            },
        ],
        toolbarLogics: [
            ]     ,
        xDataCtrlName: "grid",
        quickSearchPlaceholder: ['avue示例系统04名称',].join(","),
        useDefaultLayout: true,
        enableRowEdit: false,
        rowActiveMode: 2,
        rowEditDefault: false,
    }
}

export const model = getModel();